
package com.be.beadmin.quality.repository;

import com.be.beadmin.quality.entity.InspectionTemplateMasterItem;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;

import java.util.List;

/**
* @author ljh
* @date 2023-05-18
**/
public interface InspectionTemplateMasterItemRepository extends JpaRepository<InspectionTemplateMasterItem, String>, JpaSpecificationExecutor<InspectionTemplateMasterItem> {

    InspectionTemplateMasterItem findInspectionTemplateMasterItemByIdAndDelete(String id, Integer delete);

    InspectionTemplateMasterItem findInspectionTemplateMasterItemById(String id);

    List<InspectionTemplateMasterItem> findInspectionTemplateMasterItemByInspectionTemplateIdAndDelete(String inspectionTemplateId, Integer delete);

    InspectionTemplateMasterItem findInspectionTemplateMasterItemByInspectionTemplateIdAndSortIdAndDelete(String inspectionTemplateId, int sortId, Integer delete);
}